package com.iot08.common.entity.app;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

/**
 * @version 1.0
 * @Description: 设备转移记录
 * @author: Rock
 * @time: 2020/10/29 17:18
 */
@Data
@Document("shift")
public class Shift implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    private String username;

    @Field("old_device")
    private String oldDevice;

    @Field("old_video_endtime")
    private Integer oldVideoEndtime;

    @Field("old_video_permanent")
    private Integer oldVideoPermanent;

    @Field("new_device")
    private String newDevice;

    @Field("new_video_endtime")
    private Integer newVideoEndtime;

    //新设备imei转移后 是否开通了永久套餐（1：开通，0：未开通）
    @Field("new_video_permanent")
    private Integer newVideoPermanent;

    @Field("update_video_endtime")
    private Integer updateVideoEndtime;

    private Integer agent;

    private Date maketime;


}
